package decorator.coffee;

import decorator.Drink;

/**
 * @author : DuJiabao
 * @Date : 2021/3/3 14:30
 * @Project : design-pattern
 * @File : null.java
 * @Desc :
 */
public abstract class Coffee extends Drink {
  public Coffee() {
  }

  public Coffee(String desc, double price) {
    super(desc, price);
  }

  @Override
  public double cost() {
    return super.getPrice();
  }

  @Override
  public String getDescription() {
    return super.getDesc() + " " + super.getPrice() + " ";
  }
}
